/*******************************************************************************
 * Copyright (c) 2010, 2014 EclipseSource and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    EclipseSource - initial API and implementation
 ******************************************************************************/

/* Combo */

/* Combo always shows a border, the BORDER style flag is ignored by SWT */

Combo, CCombo {
  font: 11px Verdana, "Lucida Sans", Arial, Helvetica, sans-serif;
  background-color: #fcfcfc;
  color: #4a4a4a;
}

Combo, CCombo[BORDER] {
  background-image: gradient(
    linear, left top, left bottom,
    from( #e2e2e2 ),
    color-stop( 15%, #f8f8f8 ),
    to( #fbfbfb )
  );
  border: 1px solid #c1c1c1;
  border-radius: 2px;
}

Combo-Button-Icon, CCombo-Button-Icon {
  background-image: url( theme/fancy/icons/down.png );
}

Combo-Button-Icon:hover, CCombo-Button-Icon:hover {
  background-image: url( theme/fancy/icons/down-hover.png );
}

Combo-Button, CCombo-Button {
  background-color: transparent;
  border: none;
  border-radius: 0px 2px 2px 0px;
  background-image: gradient(
    linear, left top, left bottom,
    from( #ffffff ),
    color-stop( 48%, #f0f0f0 ),
    color-stop( 52%, #e0e0e0 ),
    to( #cccccc )
  );
  width: 18px;
}

Combo-Button:pressed, CCombo-Button:pressed {
  background-image: gradient(
    linear, left top, left bottom,
    from( #e0e0e0 ),
    color-stop( 52%, #e0e0e0 ),
    to( #b0b0b0 )
  );
}

Combo-List, CCombo-List {
  border: 1px solid #c1c1c1;
  border-radius: 0px 0px 2px 2px;
  box-shadow: 3px 3px 3px rgba( 0, 0, 0, 0.4 );
}

Combo-List-Item, CCombo-List-Item {
  color: inherit;
  background-color: transparent;
  background-image: none;
  text-decoration: none;
  text-shadow: none;
  padding: 3px 5px;
}

Combo-List-Item:hover,
CCombo-List-Item:hover,
Combo-List-Item:even:hover,
CCombo-List-Item:even:hover {
  background-image: gradient(
    linear, left top, left bottom,
    from( #e9f3d2 ),
    to( #d9e3c2 )
  );
}

Combo-List-Item:selected,
CCombo-List-Item:selected,
Combo-List-Item:even:selected,
CCombo-List-Item:even:selected,
Combo-List-Item:selected:hover,
CCombo-List-Item:selected:hover {
  background-image: gradient(
    linear, left top, left bottom,
    from( #aee336 ),
    to( #88bd10 )
  );
}

Combo-List-Item:even, Combo-List-Item:even {
  background-color: transparent;
}

Combo-FocusIndicator, CCombo-FocusIndicator {
  background-color: transparent;
  border: 1px dotted #b8b8b8;
  margin: 1px 19px 1px 1px;
  opacity: 1;
}
